package com.henu.rescue.mapper;


import com.henu.rescue.entity.Accident;
import com.henu.rescue.entity.VO.*;
import com.henu.rescue.utils.Page;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;
import java.util.List;

@Mapper
public interface AccidentMapper {


    List<AccidentVO> selectAccInfoByPage(Page<AccidentVO> page);

    Integer add(Accident accident);

    Integer getCountByPage(Page<AccidentVO> page);

    Integer del(Integer accId);

    Integer delLogic(Integer accId);

    Accident selectById(Integer accId);

    Integer distribute(Integer accId,String orderId);

    List<AccidentVO> selectNoDistributeByPage(Page<Accident> page);

    Integer getNoDistributeCountByPage(Page<Accident> page);

    List<AccidentMapVO> selectAccidentMapVO();

    List<AccidentCause> selectAccidentCause();

    List<AccTimeAndCount> selectAccTime(Date lowTime, Date highTime);

    List<AccidentYearVO> selectAccidentByYear(Integer year);

    List<AccidentAllYearVO> selectAllYear();
}
